package com.jwdf.uda.ui.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.jwdf.uda.ui.fragment.base.BaseFragment;
import com.jwdf.uda.ui.fragment.progress.LongTaskFragment;
import com.jwdf.uda.ui.fragment.progress.TaskList;


/**
 * Created by Administrator on 2016/10/26.
 */
public class LongTaskList extends AbsTitleBarActivity {

    public static void start(Context context, TaskList taskLists) {
        Intent intent = new Intent(context, LongTaskList.class);
        intent.putExtra("longTask", taskLists);
        context.startActivity(intent);
    }

    @Override
    protected String getTopTitle() {
        String title = "长传任务列表";
        return title;
    }

    @Override
    protected BaseFragment onCreateContentFragment() {
        return new LongTaskFragment();
    }

    @Override
    protected Bundle onPutArguments() {
        Bundle args = new Bundle();
        args.putSerializable("longTask", getIntent().getSerializableExtra("longTask"));
        return args;
    }
}
